import { createApp } from "vue";
import ElementPlus from "element-plus";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "element-plus/dist/index.css";
import "./assets/css/index.scss";
import "./assets/icons/index.js";
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import { ComponentCustomProperties } from "vue";
import { Store } from "vuex";
declare module "@vue/runtime-core" {
  interface State {
    count: number;
  }

  interface ComponentCustomProperties {
    $store: Store<State>;//将store属性添加到ComponentCustomProperties接口中
  }
}

const app = createApp(App)// 创建Vue应用实例
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}


createApp(App).use(store).use(router).use(ElementPlus).mount("#app");// 将应用挂载到DOM节点，id为app的元素上
